/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ecmnext.server.gui;

import java.lang.String;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSlider;
import javax.swing.JSpinner;
import javax.swing.JTextField;
import javax.swing.GroupLayout;
import java.lang.Object;
import java.util.*;
import javax.swing.JFrame;

public class ZitNotDiscreetServeurGui extends JPanel implements DisplayableNode{

	private JLabel labelNotDiscreet= new JLabel();;

	private JTextField textFieldDescription = new JTextField();

	private JLabel labelBidLimit= new JLabel();
        
        private JLabel labelAskLimit= new JLabel();

	private JLabel labelFrequence = new JLabel();

	private JSlider sliderFrequence = new JSlider(1 ,100);

	private JSpinner spinnerLimit1 = new JSpinner();

	private JSpinner spinnerLimit2 = new JSpinner();

	private JLabel labelNumberOfRobots= new JLabel();;

	private JSpinner spinnerNumberOfRobots= new JSpinner();;

        private JPanel jPanel = new JPanel();
        
        private JScrollPane jScrollPane = new JScrollPane();
        
	public int getJSpinnerLimit1(){
		
		return new Integer (spinnerLimit1.getValue().toString());
	}

	
	
	public int getJSpinnerLimit2(){
		
		return new Integer (spinnerLimit2.getValue().toString());
	}



	
	public int getJSpinnerNumberOfRobots(){
		
		return new Integer (spinnerNumberOfRobots.getValue().toString());
			}


	

	public int getJSliderFrequence(){
										
		return sliderFrequence.getValue();
			}

	


		public ZitNotDiscreetServeurGui(){
		    try {
                          jbInit();
                        }
                    catch (Exception e) {
                            e.printStackTrace();
                        }
		}


		public void initializeNotDiscrete(){
			
		}

                		
		public void setEditable(){
					
		}

		public void setUneditable(){
						
		}

    @Override
		public String toString(){
			return "ZitNotDiscreet";				
		}

                public JPanel ZitNotDiscreetServeurGui() {
                        return this;
                 }
                
                public JPanel getPanel(){
                        return this;						
		}

		public void jbInit(){
		
                    labelNotDiscreet.setText("Not Discreet");
                    
                    labelBidLimit.setText("Bid Limit");
                    
                    labelAskLimit.setText("Ask Limit");
                    
                    labelFrequence.setText("Frequence des ordres");
                    
                    labelNumberOfRobots.setText("Number of Robots");
                                                       
                    textFieldDescription.setText("ZitNotDiscreet");
                    
                    GroupLayout jPanelLayout = new GroupLayout(jPanel);
        jPanel.setLayout(jPanelLayout);
        jPanelLayout.setHorizontalGroup(
            jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelNumberOfRobots, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelFrequence)
                    .addGroup(jPanelLayout.createSequentialGroup()
                        .addComponent(labelBidLimit, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(spinnerLimit1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(spinnerNumberOfRobots, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(sliderFrequence, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanelLayout.createSequentialGroup()
                        .addComponent(labelAskLimit)
                        .addGap(18, 18, 18)
                        .addComponent(spinnerLimit2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))
                 .addContainerGap(41, Short.MAX_VALUE))
            .addComponent(textFieldDescription, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
        );
        
        jPanelLayout.setVerticalGroup(
            jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLayout.createSequentialGroup()
                .addComponent(labelNotDiscreet, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelNumberOfRobots, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(spinnerNumberOfRobots, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(38, 38, 38)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(labelFrequence, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(sliderFrequence, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(38, 38, 38)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelBidLimit, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelAskLimit)
                    .addComponent(spinnerLimit2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(spinnerLimit1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(43, 43, 43)
                .addComponent(textFieldDescription, javax.swing.GroupLayout.DEFAULT_SIZE, 70, Short.MAX_VALUE))
        );

    }




                    

}

